package cn.slipi.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.slipi.admin.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 标准表
 * </p>
 *
 * @author lee
 * @since 2021-01-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("request_log")
public class RequestLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调用者KEY
     */
    private String appKey;

    /**
     * 接口编码
     */
    private String apiCode;

    /**
     * 请求过程
     */
    private String content;

    /**
     * 请求头
     */
    private String header;

    /**
     * 请求参数
     */
    private String request;

    /**
     * 响应参数
     */
    private String response;

    /**
     * 开始时间
     */
    private Long startTimestamp;

    /**
     * 结束时间
     */
    private Long endTimestamp;

    /**
     * 是否成功
     */
    private Integer success;


}
